/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.msk.base.mapper.goods;

import com.msk.base.domain.goods.BaseDistance;
import com.msk.sys.mapper.CrudDao;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * <p>[]</p>
 * <p>作者：wlxaing</p>
 * <p>邮箱：wlxiang</p>
 * <p>创建时间： 2023-06-06 </p>
 * <p>类说明：运距维护DAO接口 </p>
 * <p>修改记录：</p>
 */
@Repository
public interface BaseDistanceDao extends CrudDao<BaseDistance> {

    /**
     * @Description 新增运距
     * @Author wlxiang
     * @Date 16:22 2023/6/9
     * @Param 
     * @param baseDistance
     * @return int
     **/
    public int insert(BaseDistance baseDistance);

    /**
     * @Description 编辑运距
     * @Author wlxiang
     * @Date 16:55 2023/6/9
     * @Param
     * @param baseDistance
     * @return int
     **/
    public int update(BaseDistance baseDistance);

    /**
     * @Description 删除运距
     * @Author wlxiang
     * @Date 17:10 2023/6/9
     * @Param
     * @param id
     * @return int
     **/
    public int delete(String id);

    /**
     * @Description 查询公共和私有运距数据
     * @Author wlxiang
     * @Date 19:16 2023/6/6
     * @Param 
     * @param affiliatedPersonId
     * @param startNameOrDistance
     * @return java.util.List<java.util.Map<java.lang.String,java.lang.Object>>
     **/
    public List<Map<String,Object>> selectDistanceList(@Param("affiliatedPersonId") String affiliatedPersonId,@Param("startNameOrDistance")String startNameOrDistance);

    /**
     * @Description 我的运距
     * @Author wlxiang
     * @Date 16:10 2023/6/9
     * @Param 
     * @param affiliatedPersonId
     * @return java.util.List<java.util.Map<java.lang.String,java.lang.Object>>
     **/
    public List<Map<String,Object>> selectMyDistanceList(@Param("affiliatedPersonId") String affiliatedPersonId);


}